package com.quwan.manager.service;

import com.quwan.app.vo.MsgQueryParams;
import com.quwan.app.vo.SystemMsgResult;
import com.quwan.common.result.PageResult;
import com.quwan.entity.TAdmin;
import com.quwan.entity.TMessage;
import com.quwan.entity.TMsgRecord;
import com.quwan.entity.TSystemPushMsg;

import java.util.List;
import java.util.function.Function;

/**
 * @author quan
 * @date 2021-11-22 1:28
 */

public interface SystemMessageService {
    void createMsg(TAdmin admin,  String body, String type);

    void createPersonalMsg(TAdmin admin, String mId, String body);

    PageResult<TSystemPushMsg> msgList(int pageNo, int pageSize,String type,String mId);

    boolean delSystemMsg(Long id);


    PageResult<TMsgRecord> getChatRecordList(int pageNo, int pageSize, String sender, String receiver, String sessionKey, String content, Integer status);


    void changeChatRecordStatus(List<Long> ids, Integer status);

    void pushRealNamePersonalMsg(TAdmin admin,String idStatus,String sex,String body);

    void pushOfflineMsg(TAdmin admin, String body,String title);

    PageResult<TMessage> offlineMsgList(int pageNo, int pageSize);
}
